package calculatorSim;

public class Multiplication {
	//instance variables
	private int mult;
	private int num1;
	private int num2;
	
	//constructor
	public Multiplication (int x, int y){
		this.num1 = x;
		this.num2 = y;
		this.mult = 0;
	}
	//add the numbers
	public int multNums(){
		this.mult =  this.num1 * this.num2;
		return this.mult;
	}
	//display results
	public void showResults(){
		System.out.println("The product is: " + multNums());
	}


}
